[root@hmiking ~]# tar xf nginx-1.17.10.tar.gz [root@hmiking ~]# cd nginx-1.17.10 [root@hmiking nginx-1.17.10]# ll #查看目录下有哪些内容 total 760 drwxr-xr-x6 mysql mysql 326 Mar 623:39 auto # 检测系统模块依赖信息 -rw-r--r-- 1 mysql mysql 302754 Apr 142020 CHANGES # 存放nginx的变化记录日志 -rw-r--r-- 1 mysql mysql 462076 Apr 142020 CHANGES.ru drwxr-xr-x2 mysql mysql 168 Mar 623:39 conf # 存放nginx主配置文件的目录 -rwxr-xr-x1 mysql mysql 2502 Apr 142020 configure # 可执行的脚本,用于编译文件的定制脚本 drwxr-xr-x4 mysql mysql 72 Mar 623:39 contrib # 提供了vim插件,让配置文件颜色区分,更友好 drwxr-xr-x2 mysql mysql 40 Mar 623:39 html # 存放了标准的html页面文件 -rw-r--r-- 1 mysql mysql 1397 Apr 142020 LICENSE drwxr-xr-x2 mysql mysql 21 Mar 623:39 man -rw-r--r-- 1 mysql mysql 49 Apr 142020 README drwxr-xr-x9 mysql mysql 91 Mar 623:39 src # 存放了nginx源代码的目录
[root@hmiking nginx]# nginx -V nginx version: nginx/1.17.10 built by gcc 4.8.520150623 (Red Hat 4.8.5-44) (GCC) built with OpenSSL 1.0.2k-fips 26 Jan 2017 TLS SNI support enabled configure arguments: --prefix=/usr/local/nginx --with-http_ssl_module --with-http_flv_module --with-http_gzip_static_module --with-http_stub_status_module --with-threads --with-file-aio
[root@hmiking ~]# curl localhost <!DOCTYPE html> <html> <head> <title>Welcome to nginx!</title> <style> body { width: 35em; margin: 0 auto; font-family: Tahoma, Verdana, Arial, sans-serif; } </style> </head> <body> <h1>Welcome to nginx!</h1> <p>If you see this page, the nginx web server is successfully installed and working. Further configuration is required.</p> <p>For online documentation and support please refer to <a href="http://nginx.org/">nginx.org</a>.<br/> Commercial support is available at <a href="http://nginx.com/">nginx.com</a>.</p> <p><em>Thank you for using nginx.</em></p> </body> </html>